import React from 'react'
import NewsPublish from '@/components/publish-manage/NewsPublish'
import usePublish from '@/components/publish-manage/usePublish'
import { Button } from 'antd'

function Unpublished() {
  const { dataSource, handlePublish } = usePublish(1)
  return (
    <div>
      <NewsPublish
        button={(item) => <Button onClick={() => handlePublish(item)} type="primary">发布</Button>}
        dataSource={dataSource}/>
    </div>
  )
}

export default Unpublished